﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace BBICMS.Model.ViewModel.Back
{
    public class SocialVM
    {
        [Display(Name = "腾讯QQ一", Prompt = "腾讯QQ一")]
        
        [StringLength(16, ErrorMessage = "字符长度不可以超过16位")]       
        [RegularExpression(@"^[1-9][0-9]{4,9}$",   ErrorMessage = "QQ号码格式不正确")]
        public string Oicq { get; set; }

        [Display(Name = "腾讯QQ二", Prompt = "腾讯QQ二")]
        [StringLength(16, ErrorMessage = "字符长度不可以超过16位")]
        [RegularExpression(@"^[1-9][0-9]{4,9}$", ErrorMessage = "QQ号码格式不正确")]
        public string OicqTwo { get; set; }

        
        [Display(Name = "新浪微博")]
        [Url(ErrorMessage = "网址格式不正确")]  
        [DataType(DataType.Url)]     
        public string SinaWeibo { get; set; }

         [Display(Name = "微信帐号")]           
        public string WeiXing { get; set; }

        [Display(Name = "微信二维码")]       
        [DataType(DataType.ImageUrl)]
        public string WeiXingCode { get; set; }
    }
}
